Skip to content

Conversation

@Fdawgs
Copy link
Contributor

@Fdawgs Fdawgs commented Feb 24, 2025

This PR migrates the release-please workflow to the latest version, moving to a manifest-based config like eslint-community/eslint-plugin-n and eslint-community/eslint-plugin-promise. .github/release-please/config.json was lifted directly from these.

Permissions have been moved to the job-level rather than workflow-level, and the release-please steps and npm publish steps split into their own respective jobs, to ensure each have only the permissions they need.

This will stop the release-please workflow from consistently failing as it currently does.

@nzakas
Copy link
Contributor

nzakas commented Feb 25, 2025

Thanks for looking at this. One point of concern: at least the last time I migrated to a manifest config, it ended up changing the tag name release-please used, which then disrupted the next release.

We can mitigate that affect by setting a bootstrap-sha in the manifest to ensure that release-please doesn't keep going to previous releases if the tag format doesn't match.

@Fdawgs
Copy link
Contributor Author

Fdawgs commented Mar 8, 2025

Thanks @nzakas, hopefully i've done this right. I've added the sha for the commit just before 3.0.1 as it states to do in the release-please docs.

@nzakas
Copy link
Contributor

nzakas commented Mar 10, 2025

@Fdawgs

The docs say:

so choose one commit earlier than the first commit you want to include

We actually want the commit for 3.0.1, because we want the next commit after that to be included.

@@ -0,0 +1 @@
{".":"3.0.1", "bootstrap-sha": "877a1a20cc5a3505c146ffff027c495794495f7f"} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bootstrap-sha needs to be in the config file rather than here.

@Fdawgs
Copy link
Contributor Author

Fdawgs commented Mar 11, 2025

Whoops! Have moved to correct location and changed sha as requested.

Copy link
Contributor

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! We'll see what happens in the next release. 😄

@nzakas nzakas merged commit e060aeb into eslint-community:main Mar 11, 2025
8 checks passed
@Fdawgs Fdawgs deleted the ci/actions branch March 11, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants